<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCondicaopagamentoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_idCondicaoPagamento}" for="idCondicaoPagamento" />
                    <h:inputText id="idCondicaoPagamento" value="#{condicaopagamentoController.selected.idCondicaoPagamento}" title="#{bundle.EditCondicaopagamentoTitle_idCondicaoPagamento}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_idCondicaoPagamento}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_descricao}" for="descricao" />
                    <h:inputText id="descricao" value="#{condicaopagamentoController.selected.descricao}" title="#{bundle.EditCondicaopagamentoTitle_descricao}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_descricao}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_vezes}" for="vezes" />
                    <h:inputText id="vezes" value="#{condicaopagamentoController.selected.vezes}" title="#{bundle.EditCondicaopagamentoTitle_vezes}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_vezes}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_perJuros}" for="perJuros" />
                    <h:inputText id="perJuros" value="#{condicaopagamentoController.selected.perJuros}" title="#{bundle.EditCondicaopagamentoTitle_perJuros}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_perJuros}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_multa}" for="multa" />
                    <h:inputText id="multa" value="#{condicaopagamentoController.selected.multa}" title="#{bundle.EditCondicaopagamentoTitle_multa}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_multa}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_diasMulta}" for="diasMulta" />
                    <h:inputText id="diasMulta" value="#{condicaopagamentoController.selected.diasMulta}" title="#{bundle.EditCondicaopagamentoTitle_diasMulta}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_diasMulta}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_taxa}" for="taxa" />
                    <h:inputText id="taxa" value="#{condicaopagamentoController.selected.taxa}" title="#{bundle.EditCondicaopagamentoTitle_taxa}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_taxa}"/>
                    <h:outputLabel value="#{bundle.EditCondicaopagamentoLabel_formaPagamento}" for="formaPagamento" />
                    <h:selectOneMenu id="formaPagamento" value="#{condicaopagamentoController.selected.formaPagamento}" title="#{bundle.EditCondicaopagamentoTitle_formaPagamento}" required="true" requiredMessage="#{bundle.EditCondicaopagamentoRequiredMessage_formaPagamento}">
                        <f:selectItems value="#{formapagamentoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{condicaopagamentoController.update}" value="#{bundle.EditCondicaopagamentoSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditCondicaopagamentoViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{condicaopagamentoController.prepareList}" value="#{bundle.EditCondicaopagamentoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditCondicaopagamentoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
